home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
GameKit
/
Makefiles
/
lib
/
Makefile.ofiles
< prev
next >
Wrap
Makefile
|
1995-06-12
|
1KB
|
56 lines
#
# NeXT common include file for Internal Makefiles
# Copyright 1987, 1991, NeXT Computer, Inc.
#
# Maintained by Doug Wiebe.
#
# This Makefile has the targets used to build object files.
#
# makes all the ofiles
ofiles:: $(OFILE_DIR) $(OFILES)
ofiles_novers:: $(OFILE_DIR) $(OFILES_NOVERS)
optimized_ofiles::
@echo '************* $(NAME) Optimized ofiles *************'
@$(MAKE) ofiles \
"PRODUCT = $(OPT_LIB)" \
"OFILE_DIR = $(OBJROOT)/$(OPT_OBJ)" \
"SYMROOT = $(SYMROOT)" \
"OBJROOT = $(OBJROOT)" \
"CFLAGS = $(OPTCFLAGS)"
debug_ofiles::
@echo '*************** $(NAME) Debug ofiles ***************'
@$(MAKE) ofiles \
"PRODUCT = $(DEBUG_LIB)" \
"OFILE_DIR = $(OBJROOT)/$(DEBUG_OBJ)" \
"SYMROOT = $(SYMROOT)" \
"OBJROOT = $(OBJROOT)" \
"CFLAGS = $(DEBUGCFLAGS)"
profile_ofiles::
@echo '************** $(NAME) Profile ofiles **************'
@$(MAKE) ofiles \
"PRODUCT = $(PROFILE_LIB)" \
"OFILE_DIR = $(OBJROOT)/$(PROFILE_OBJ)" \
"SYMROOT = $(SYMROOT)" \
"OBJROOT = $(OBJROOT)" \
"CFLAGS = $(PROFCFLAGS)"
# makes sure these directories exist
$(OFILE_DIR):
@if [ ! -d $@ ] ; then \
echo mkdirs $(MKDIRSFLAGS) $@ ; \
mkdirs $(MKDIRSFLAGS) $@ ; \
fi
# rules to make version files
$(VERSFILE).c:
vers_string $(VERSFLAGS) $(PRODUCT) > $(OBJROOT)/$(VERSFILE).c
force_version::
-/bin/rm -f $(OBJROOT)/$(VERSFILE).c